<extend name="Base/common"/>
<block name="header">
    <include file="Public/_nav"/>
    <php> D('Member')->need_login();</php>
    <link type="text/css" rel="stylesheet" href="__CSS__/course.css"/>
    <script type="text/javascript" src="__JS__/common.js"></script>
</block>

<block name="body">
    <!--登录后显示个人区域-->
     <div class="col-md-2">  
           
           <include file="Public/sidebar"  />
     </div>
     <!--/登录后显示个人区域-->


     <div class="col-md-10 content">
     <div class="row">
        <!-- 右侧复选项 --> 
           <include file="_tab"/>
       <!-- /右侧复选项 -->  

    <div class="white-box">
        <h3> &nbsp;&nbsp;<i class="icon icon-list-alt"></i>&nbsp;当前班级：<span style="color:#4444CC">{$curclass.bj_name} </span><span style="color:#CC4444">{$curclass.title}  </span></h3>

      <div class="data-table with-padding">
      <table class="table table-bordered with-padding ">
      <thead>
      <tr>
        <th>序号</th><th>班级</th><th>课程</th><th>上传文件格式</th><th>课时</th><th>更新日期</th><th>操作</th>
      </tr>
      </thead>
      <tbody>
      <volist name="classlist" id="v" >
        
        <tr <eq name="v.cur" value="1"> class="success"</eq> >
          <td>{$i}</td>
          <td>
          <eq name="v.cur" value="1"><span style="color:#CC4444">
          {$v.bj_name}</span><else />
          <a href="{:U('ClassCourse/dosetCurClass','bj_code='.$v['bj_code'])}" >
          {$v.bj_name}</a></eq>
          </td>
          <td>{$v.title}</td>          
          <td>{$v.allow_ext}</td>
          <td>{$v.week}</td>
          <td>{$v.update_time|date='Y-m-d',###}</td>
          <td>
          <a class="text-primary" href="{:U('editCourse?id='.$v['course_id'])}" data-toggle='modal' data-width="800px" 
            data-moveable="true" data-title="编辑课程信息" title="编辑" data-icon="edit"><i class="icon-edit"></i></a>

          <a href="{:U('ClassCourse/selectBjCourse','bj_code='.$v['bj_code'])}" data-toggle='modal' data-width="500px" 
            data-moveable="true" data-title="课程进度" title="课程进度" data-icon="exchange">
          <i class="icon icon-exchange"></i>进度</a>|<a href=""><i class="icon icon-remove-circle"></i>取消</a>|<a href="{:U('ClassCourse/dosetCurClass','bj_code='.$v['bj_code'])}"><i class="icon icon-star"></i>上课</a>
          </td>
        </tr>
        </volist>
      </tbody>
      </table>
      </div>
  </div></div></div>

</block>



